package com.ruoyi.web.controller.xcx;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.AComplaint;
import com.ruoyi.system.service.IAComplaintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ppz投诉Controller
 *
 * @author gf
 * @date 2024-11-23
 */
@RestController
@RequestMapping("/xcx/aComplaint")
public class XcxAComplaint extends BaseController {
    @Autowired
    private IAComplaintService aComplaintService;

    @PostMapping("/add")
    public AjaxResult add(@RequestBody AComplaint aComplaint) {
        return toAjax(aComplaintService.insertAComplaintXcx(aComplaint));
    }
}
